package com.beiing.tianshuai.tianshuai.mine.presenter;

import com.beiing.tianshuai.tianshuai.base.BasePresenter;
import com.beiing.tianshuai.tianshuai.entity.CodeBean;
import com.beiing.tianshuai.tianshuai.entity.MyInterestVideoBean;
import com.beiing.tianshuai.tianshuai.mine.model.MyInterestContentModel;
import com.beiing.tianshuai.tianshuai.mine.model.MyInterestContentModelImpl;
import com.beiing.tianshuai.tianshuai.mine.view.MyInterestContentViewImpl;

/**
 * Created by Jinni on 2017/12/8 0008
 */

public class MyInterestContentPresenter extends BasePresenter implements MyInterestContentPresenterImpl, MyInterestContentModel.OnMyInterestContentListener {

    private MyInterestContentViewImpl mView;
    private MyInterestContentModelImpl mModel;

    public MyInterestContentPresenter(MyInterestContentViewImpl view) {
        mView = view;
        mModel = new MyInterestContentModel(this);
    }

    @Override
    public void getMyVideoContent(String uid, String pageSize, int page, int status) {
        mModel.getMyVideoContent(uid, pageSize, page, status);
    }

    @Override
    public void getDeleteResult(String uid, String vid) {
        mModel.getDeleteResult(uid, vid);
    }

    @Override
    public void getMyVideoContentSuccess(MyInterestVideoBean bean) {
        mView.getMyInterestContentSuccess(bean);
    }

    @Override
    public void getMyVideoContentError(Throwable throwable) {
        mView.getMyInterestContentError(throwable);
    }

    @Override
    public void onDeleteSuccess(CodeBean bean) {
        mView.onDeleteSuccess(bean);
    }

    @Override
    public void onDeleteError(Throwable throwable) {
        mView.onDeleteError(throwable);
    }
}
